package com.sales.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created by lihu on 2017/9/9.
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class StoreVo {

    private long totalPages = 0;

    private long totalElements = 0;

    private List<Store> stores = new ArrayList<>();

    public StoreVo(long totalPages, long totalElements) {
        this.totalPages = totalPages;
        this.totalElements = totalElements;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Store {
        // 序列号
        private String id;

        //店铺名称
        @JsonProperty("name")
        private String storesName;

        private Date lastRenewTime;

        //完成人
        private String commissionOwner;

        //提成金额
        private double commissionAmount = 0;
    }

}
